package model;

import web.model.Bean;

/**
 * Album bean
 * 
 * @author orlin
 */
public class AlbumBean extends Bean {

	private String released;
	private String item;
	private String catalog;
	private String format;
	private String title;

	public AlbumBean() {
		super();
	}

	public AlbumBean(Album album) {
		super();
		this.released = album.getReleased();
		this.item = album.getItem();
		this.catalog = album.getCatalog();
		this.format = album.getFormat();
		this.title = album.getTitle();
	}

	public AlbumBean(String released, String item, String catalog, String format, String title) {
		super();
		this.released = released;
		this.item = item;
		this.catalog = catalog;
		this.format = format;
		this.title = title;
	}

	public String getReleased() {
		return released;
	}
	public void setReleased(String released) {
		this.released = released;
	}
	public String getItem() {
		return item;
	}
	public void setItem(String item) {
		this.item = item;
	}
	public String getCatalog() {
		return catalog;
	}
	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}
	public String getFormat() {
		return format;
	}
	public void setFormat(String format) {
		this.format = format;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public String toString() {
		StringBuffer line = new StringBuffer();
		line.append("Album [id:");
		line.append(getId());
		line.append(", released:");
		line.append(released);
		line.append(", item:");
		line.append(item);
		line.append(", catalog:");
		line.append(catalog);
		line.append(", format:");
		line.append(format);
		line.append(", title:");
		line.append(title);
		line.append("]");
		return line.toString();
	}
}
